function StageAssistant() {
	this.cmdMenuAttrs = {
		menuClass: 'no-fade'
	};
	this.cmdMenuModel = {
		visible: true,
		items: [
			{ 
				items: [
					{ label: 'Config', command: 'config'},
					{ label: 'Status', command: 'status'},
					{ label: 'History', command: 'history' }
				]
			}
		]
	};
}

StageAssistant.prototype.setup = function() {
	/* this function is for setup tasks that have to happen when the stage is first created */
	this.controller.pushScene('config');
};


StageAssistant.prototype.handleCommand = function(ev) {
	var c = this.controller;
	if (ev.type === Mojo.Event.command) {
		switch(ev.command) {
			case 'config':
				c.swapScene('config');
				break;
			case 'status':
				c.swapScene('status');
				break;
			case 'history':
				c.swapScene('history');
				break;
			default:
				console.log('unknown command: ' + ev.command);
				break;
		}
	}
};

// not used
StageAssistant.prototype.demoNodeWebSocket = function() {
	var opts = { transports: ['xhr-polling'], port: 8124};
	var socket =  new io.Socket('192.168.24.42',opts);
	socket.connect();
	socket.send('online');
	socket.on('message', function(data){
		say('message: ' + data);
	});
	say('socket through');
};

